﻿using System.Collections.Generic;

namespace MoreExtentions
{
    public static partial class Linq
    {
        public static List<T> Flat<T>(this List<List<T>> collections)
        {
            var result = new List<T>();
            foreach (var collection in collections)
                result.AddRange(collection);

            return result;
        }
    }
}